package org.ragdollcat.secondaiagent.controller;

import jakarta.annotation.Resource;
import org.ragdollcat.secondaiagent.app.ChatToolsApp;
import org.ragdollcat.secondaiagent.app.LoveApp;
import org.ragdollcat.secondaiagent.third.baidu.transfer.TransApi;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
@RequestMapping("/health")
public class HealthController {

//    @Resource
//    private TransApi transApi;

    @Resource
    private ChatToolsApp chatToolsApp;

    @Resource
    private LoveApp loveApp;

    @GetMapping
    public String healthCheck() {
        return "ok";
    }

//    @GetMapping("/test/transfer")
//    public void testTransfer(){
//        System.out.println(transApi.getTransResult("who is dog", "en", "zh").toString());
//    }


    @GetMapping("/test")
    public void testChatTool(){
        loveApp.doChatWithMcp("beautify cat", UUID.randomUUID().toString());
    }
}
